package com.fgr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaokai
 * @since 2023-05-09
 */
@TableName("an_message")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long msgUserid;

    /**
     * 消息类型id与消息类型表主键对应
     */
    private Long msgTid;

    /**
     * 消息时间
     */
    private LocalDateTime msgTime;

    /**
     * 消息内容
     */
    private String msgFormation;

    /**
     * 图片消息
     */
    private String msgImg;

    /**
     * 逻辑删除字段
     */
    private Boolean isDel;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMsgUserid() {
        return msgUserid;
    }

    public void setMsgUserid(Long msgUserid) {
        this.msgUserid = msgUserid;
    }

    public Long getMsgTid() {
        return msgTid;
    }

    public void setMsgTid(Long msgTid) {
        this.msgTid = msgTid;
    }

    public LocalDateTime getMsgTime() {
        return msgTime;
    }

    public void setMsgTime(LocalDateTime msgTime) {
        this.msgTime = msgTime;
    }

    public String getMsgFormation() {
        return msgFormation;
    }

    public void setMsgFormation(String msgFormation) {
        this.msgFormation = msgFormation;
    }

    public String getMsgImg() {
        return msgImg;
    }

    public void setMsgImg(String msgImg) {
        this.msgImg = msgImg;
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "Message{" +
        "id = " + id +
        ", msgUserid = " + msgUserid +
        ", msgTid = " + msgTid +
        ", msgTime = " + msgTime +
        ", msgFormation = " + msgFormation +
        ", msgImg = " + msgImg +
        ", isDel = " + isDel +
        "}";
    }
}
